package com.level.restful.util;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.level.restful.entity.PageBean;

/**
 * 自定义page和mybatis数据交换
 * @author zcw
 *
 */
public class PageUtil {
	
	public static Page<?> pageDataInterchange(PageBean<?> page) {
		return new Page((long)page.getPage(), (long)page.getLimit());
	}
}
